//
//  SEGTopicDetailWaterfallLayout.h
//  WaterfallDemo
//
//  Created by JokerHe on 2018/4/17.
//  Copyright © 2018年 JokerHe. All rights reserved.
//

#import <UIKit/UIKit.h>
@class SEGTopicDetailWaterfallLayout;

@protocol SEGTopicDetailWaterfallLayoutDelegate <NSObject>
- (CGFloat)layout:(SEGTopicDetailWaterfallLayout *)layout heightForItemAtIndexPath:(NSIndexPath *)indexPath itemWidth:(CGFloat)width;
@end

@interface SEGTopicDetailWaterfallLayout : UICollectionViewFlowLayout
@property (nonatomic, weak) id<SEGTopicDetailWaterfallLayoutDelegate> delegate;
@property (nonatomic, assign) NSInteger colCount;
@property (nonatomic, assign) CGFloat minItemHeight;
@end
